Home:ALL Converter>Simulating the windows key as a modifier in PowerShell/CMD

Simulating the windows key as a modifier in PowerShell/CMD

Ask Time:2022-07-22T03:44:29         Author:Adam Bock

Json Formatter

I'm trying to script a basic code for use on a company computer (so no extra downloads) to simulate pressing Ctrl + Shft + Win + B. Basically, our users when working remote will use Citrix to tunnel into their office desktops, and when they need to reset their graphics driver they cannot do so remotely. I'm trying to make a simple script to do so.

Is there any ways for PowerShell to recognize the windows key as a modifier so I can hit that key combo while remotely connected?

Author:Adam Bock,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/73071836/simulating-the-windows-key-as-a-modifier-in-powershell-cmd
yy